package com.dlnu.service;

import com.github.pagehelper.PageInfo;
import com.dlnu.bean.Dormitory;
import org.springframework.transaction.annotation.Transactional;

public interface DormitoryService {

    int create(Dormitory dormitory);

    int delete(String ids);

    int delete(Integer id);

    int update(Dormitory dormitory);

    int updateSelective(Dormitory dormitory);

    PageInfo<Dormitory> query(Dormitory dormitory);

    Dormitory detail(Integer id);

    int count(Dormitory dormitory);

    @Transactional
    void init(Dormitory dormitory);
}
